
package com.qingzhuge.member.entity;

import com.qingzhuge.entity.BasePkLongEntity;
import com.qingzhuge.member.enums.EnumUserMessageType;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author : zero.xiao
 * @description :
 * @date :2018/12/29 0029 下午 14:37
 * @since : 1.0.0
 * @modified :
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "sys_member_user_message")
public class SysUserMessage extends BasePkLongEntity {
    private static final long serialVersionUID = 8427339730271464745L;
    /**
     * 是否已读
     */
    @Column(name = "is_read")
    private Boolean read;
    /**
     *状态：发送中0，成功1，失败-1
     */
    private Integer status;
    /**
     * 消息类型
     */
    private EnumUserMessageType type;
    /**
     * 消息内容
     */
    private String content;


    public SysUserMessage() {
    }

    public SysUserMessage(Long id) {
        super(id);
    }
}
